﻿@using Smarly.Forum.Bussines.Model
@using Smarly.Web.Helpers
@model List<Smarly.Forum.Bussines.Model.ThreadModel.ClarifyNote>



<div class="improve" id="clarify-@ViewBag.NoteId">
	@foreach (var clarify in Model)
	{
	 @Html.Partial("_ClarifyPartial", clarify)
	}
</div>

@{
	var existClarify = ViewBag.NewClarify as ThreadModel.ClarifyNote;
	var newClarify = new ThreadModel.ClarifyNote() {ThreadNoteId = ViewBag.NoteId};
	if (existClarify != null && existClarify.ThreadNoteId == ViewBag.NoteId)
	{
		newClarify = existClarify;
	}
}

@Html.Partial("_AddClarifyPartial", newClarify)

